package com.qianji.petmall.member.config;

/**
 * @author liang zai
 * @date 2022/6/6 15:40
 * @description
 */
//@Configuration
//public class SleuthSamplerConfiguration {
//    @Bean
//    public Sampler defaultSampler() throws Exception {
//        // 这个值是采样率，设置为1就是100%采样，每一条请求都采，0.1就是10%采样率
//        Float f = new Float(1f);
//        SamplerProperties samplerProperties = new SamplerProperties();
//        samplerProperties.setProbability(f);
//        ProbabilityBasedSampler sampler = new ProbabilityBasedSampler((Supplier<Float>) samplerProperties);
//        return sampler;
//    }
//}
